<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<%
	String path =request.getContextPath();
	request.setAttribute("qryCondOrderForm",request.getAttribute("qryCondOrderForm"));
	request.setAttribute("qryResultOrderForms",request.getAttribute("qryResultOrderForms"));
%>
<head>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <script language="javascript" type="text/javascript">
     	function goback(){
	  		var url = "<%=path%>/order/goBack2OrderConfirm";
			location.href = url;
	  	}
     </script>
    
</head>
<body class="fullbody">
        <div class="context">
        	<div class="position">
            	<div class="tposi">当前位置：
                    	<a href="javascript:changeMenu(1,'<%=path%>/infopub/pubmain?menuid=1');" class="linkstyle">首页</a>&nbsp;&gt;&gt;&nbsp;
                       <a href="javascript:changeMenu(3,'');" class="linkstyle">我的订单\合同</a>&nbsp;&gt;&gt;&nbsp; 
                        <span class="curposition">订单确认</span>
                </div>
                <div class="help">
					<a href="javascript:void(null);" onclick="doHelp('<%=request.getContextPath()%>/help/html/DDQR.html');" class="linkstyle">帮助</a>
				</div>
            </div>
                <div class="margin8"></div>
                <div class="subpage_title">
                    <div class="title_index">
                        <img src="<%=path%>/images/common/dot03.gif" alt="" border="0" />&nbsp;订单确认
                    </div>
                </div>
                <div class="margin20"></div>
                <div class="subpage_bidlist">
                    <div>
                         <div  >
		                    <div class="title_index">
							    <div class="margin20"></div>
							    <div class="subpage_search" >
			                        <table border="0" cellpadding="0" cellspacing="0" class="searchtable">
			                            <tr>
			                                <td valign="middle" class="w_1">采购订单号：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="searchtext" name="searchtext" type="text" value="${orderForm12.billNo}" readonly="readonly" class="searchtext" />
			                                </td>
			                                <td valign="middle" class="w_1">采购公司：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="Text1" name="searchtext" type="text" value="${orderForm12.purCorpName}" readonly="readonly" class="searchtext" />
			                                </td>
			                            </tr>
			                            <tr>
			                            	<td valign="middle" class="w_1">采购部门：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="searchtext" name="searchtext" type="text" value="${orderForm12.purDeptName}" readonly="readonly" class="searchtext" />
			                                </td>
			                                <td valign="middle" class="w_1">采购员：</td>
			                                <td valign="middle" class="w_2">
			                                   <input id="searchtext" name="searchtext" type="text" value="${orderForm12.purPsnName}" readonly="readonly" class="searchtext" />
			                                </td>
			                            </tr>
			                            <tr>
			                                <td valign="middle" class="w_1">订单日期：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="Text8" name="searchtext" type="text" value="${orderForm12.ordeDate}" readonly="readonly" class="searchtext"/>
			                                </td>
			                                <td valign="middle" class="w_1">响应状态：</td>
			                                <td valign="middle" class="w_2">
			                                     <select class="searchtext" disabled="disabled">
													<option value=""></option>
														<option value="1" <c:if test="${1==orderForm12.responseStatus}">selected</c:if>>待卖方确认</option>
														<option value="2" <c:if test="${2==orderForm12.responseStatus}">selected</c:if>>接受</option>
														<option value="3" <c:if test="${3==orderForm12.responseStatus}">selected</c:if>>拒绝</option>
														<option value="4" <c:if test="${4==orderForm12.responseStatus}">selected</c:if>>卖方变更中</option>
														<option value="5" <c:if test="${5==orderForm12.responseStatus}">selected</c:if>>卖方已变更</option>
														<option value="6" <c:if test="${6==orderForm12.responseStatus}">selected</c:if>>买方已确认</option>
												  </select>
			                                </td>
			                            </tr>
			                            <tr>
			                                <td valign="middle" class="w_1">供应商发货地址：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="Text8" name="searchtext" type="text" value="${orderForm12.supSendAddrName}" readonly="readonly" class="searchtext" />
			                                </td>
			                                <td valign="middle" class="w_1">发票方：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="Text8" name="searchtext" type="text" value="${orderForm12.invoiceSuppName}" readonly="readonly" class="searchtext" />
			                                </td>
			                            </tr>
			                            <tr>
			                                <td valign="middle" class="w_1">收付款协议名称：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="Text8" name="searchtext" type="text" value="${orderForm12.protocolName}" readonly="readonly" class="searchtext" />
			                                </td>
			                                <td valign="middle" class="w_1">备注：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="Text8" name="searchtext" type="text" value="${orderForm12.memo}" readonly="readonly" class="searchtext" />
			                                </td>
			                           </tr>
			                           <tr><td colspan="4">&nbsp;</td></tr>
			                        </table>
                    			</div>
			                    <div class="margin20"></div>
							    <div>
							        <table class="tableCss" cellpadding="0" cellspacing="0" >
							            <tr  class="titleTr" >
							                <th width="165px">产品 </th>
								            <th width="191px">数量</th>
							                <th width="144px">价格</th>
							                <th width="140px">金额</th>
							                <th width="163px" class="th1">计划日期</th>
							            </tr>
								        <c:if test="${orderForm12!=null && orderForm12.orderItems!=null}">
											<c:forEach items="${orderForm12.orderItems}" var="orderItemForm" varStatus="index">
												<c:if test="${orderItemForm.index%2==1}">
													<tr align="left" class="contTr-old"  >
												</c:if>
												<c:if test="${orderItemForm.index%2==0}">
													<tr align="left" class="contTr-even">
												</c:if>
													<td class="td3">
														<span class="prodName">${orderItemForm.prodName}</span><br/>
														<c:if test="${orderItemForm.module!=null && ''!=orderItemForm.module}">规格：${orderItemForm.module}<br/></c:if>
														<c:if test="${orderItemForm.type!=null  && ''!=orderItemForm.type}">型号：${orderItemForm.type}<br/></c:if>
														<c:if test="${orderItemForm.batchNo!=null  && ''!=orderItemForm.batchNo}">批次号：${orderItemForm.batchNo}<br/></c:if>
														<c:if test="${orderItemForm.contractNo!=null  && ''!=orderItemForm.contractNo}">合同号：${orderItemForm.contractNo}<br/></c:if>
														<c:if test="${orderItemForm.produceFactory!=null  && ''!=orderItemForm.produceFactory}">生产厂商：${orderItemForm.produceFactory}<br/></c:if>
														<c:if test="${orderItemForm.qulityLevel!=null  && ''!=orderItemForm.qulityLevel}">质量等级：${orderItemForm.qulityLevel}<br/></c:if>
<!--														<c:if test="${orderItemForm.desc!=null  && ''!=orderItemForm.desc}">描述：${orderItemForm.desc}</c:if>-->
													</td>
													<td class="td3">
														订单数量：<font class="words-blue">${orderItemForm.orderNum}</font>${orderItemForm.measureName}<br/>
														确认数量：<c:if test="${null!=orderItemForm.confirmNum && ''!=orderItemForm.confirmNum}"><font class="words-red-bold">${orderItemForm.confirmNum}</font>${orderItemForm.measureName}</c:if>&nbsp;
													</td>
													<td class="td3">
														订单单价：<font class="words-blue">${orderItemForm.taxPrice}</font><br/>
														确认单价：<font class="words-red-bold"><c:if test="${null!=orderItemForm.confirmPrice && ''!=orderItemForm.confirmPrice}">${orderItemForm.confirmPrice} </c:if><c:if test="${1==orderForm12.responseStatus}">&nbsp;</c:if></font><br/>
														折  扣   率：<font class="words-blue">${orderItemForm.discount}%</font><br/>
														净含税单价：<font class="words-blue">${orderItemForm.netTaxPrice}</font><br/>
														币种：<font class="words-blue">${orderItemForm.curName}</font>
													</td>
													<td class="td3">
														税率：<font class="words-blue">${orderItemForm.rate}%</font><br/>
														价税合计：<font class="words-red-bold">${orderItemForm.priceTaxTotal}</font>
														<font class="words-blue">
<!--														${orderItemForm.taxNum}-->
														</font><br/>
													</td>
													<td class="td3">
														订单计划到货：<font class="words-blue">${orderItemForm.planArrDate}</font><br/>
														确认计划到货：<font class="words-blue"><c:if test="${1!=orderForm12.responseStatus}">${orderItemForm.confirmArrDate}</c:if><c:if test="${1==orderForm12.responseStatus}">${orderItemForm.confirmArrDate}</c:if></font>
													</td>
												</tr>
												<c:if test="${orderItemForm.index%2==1}">
													<tr boder='1' class="contTr-old" style="height: 28px">
												</c:if>
												<c:if test="${orderItemForm.index%2==0}">
													<tr boder='1' class="contTr-even" style="height: 28px">
												</c:if>
													<td align="left" colspan="7" class="td2">
														收货地址：<c:if test="${orderItemForm.receiveAddr!=null && ''!=orderItemForm.receiveAddr}">${orderItemForm.receiveAddr}</c:if>
															     <c:if test="${orderItemForm.receiveAddr==null || ''==orderItemForm.receiveAddr}">暂无</c:if>
													</td>
												</tr>
											</c:forEach>
										</c:if>
									</table>
							    </div>
							    <div class="margin20"></div>
							    <div>
							        <table width="600" align="center" border="0" cellspacing="0" cellpadding="0">
							            <tr id="order_confirm" align="center">
							                <td>
							                    <input type="button" class="btnscs" value="返回" onclick="goback()" />
							                </td>
							            </tr>
							        </table>
							    </div>
							</div>
			                <div class="margin20"></div>
						</div>
                    </div>
                    <div class="margin8"></div>
                    <div class="margin8">
                    	<table align="left">
							<tr class="title">
								<td>
									<div id="message" class="msgcolor">${system_err_msg}</div>
								</td>
							</tr>
						</table>
					</div> 
                </div>
            </div>
        <div class="margin20"></div>
</body>
</html>
